package io.uouo.wechatbot.util;

import cn.hutool.core.date.DateUtil;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

/**
 * @author wangwei
 * @date 2021/6/29
 */

public class MessageUtil {

    public static String spoken(String s){
        String s1 = HttpUtil.get("http://api.qingyunke.com/api.php?key=free&appid=0&msg=" + s);
        JSONObject jsonObject = JSON.parseObject(s1);
        String string = jsonObject.getString("content");
        System.out.println(string);
        return string;
    }

    public static String AInfo(String s){
        String licence = "9F1DB302-A18D-70BB-05DE-F0A78FAFBD0D";
        HttpUtil.get("http://ig507.com/data/base/gplist?licence="+licence);
        return null;
    }

}
